{% extends 'plain.html' %}
{% load sitetags %}

{% get_aai_signin_name_url as signin_name_url %}

{% block body %}
    <div class="tw:grid tw:h-full tw:place-items-center">
        <div class="tw:w-1/3 tw:min-w-md tw:max-w-2xl tw:border tw:rounded-xl tw:flex tw:flex-col tw:gap-2 tw:p-3">
            <h1 class="tw:font-bold tw:text-xl tw:w-full tw:text-center">{{ app_name }}</h1>
            <div class="tw:flex tw:flex-col tw:gap-2">
                {% if signin_name_url %}
                    <button class="tw:btn tw:btn-block tw:btn-primary" href="{{ signin_name_url.url }}">
                        <i class="fa fa-share"></i><i class="fa fa-user"></i> {{ signin_name_url.name }}
                    </button>
                {% endif %}
                
                <a class="tw:btn tw:btn-block" href="{% url 'user:login' %}" role="button">
                    {% trans '本地登录' %}
                </a>

                <a class="tw:btn tw:btn-block" href="{% url 'user:signup' %}" role="button">
                    {% trans '注册' %}
                </a>
            </div>
        </div>
    </div>
{% endblock %}

